﻿using SuperX.SuperSocket.Common;
using SuperSocket.SocketBase.Command;
using SuperSocket.SocketBase.Protocol;

namespace SuperX.SuperSocket.Server.Command
{
    public class CheckExist : CommandBase<IOTSocketSession, BinaryRequestInfo>
    {
        public override void ExecuteCommand(IOTSocketSession session, BinaryRequestInfo requestInfo)
        {
            session.UpLoadEngine.OnCheckFile(Tag.CheckExist, false);
            //if (File.Exists(Path.GetFullPath(Encoding.UTF8.GetString(requestInfo.Body))))
            //{
            //    session.UpLoadEngine.OnCheckFile(Tag.CheckExist, true);
            //}
            //else
            //{
            //    session.UpLoadEngine.OnCheckFile(Tag.CheckExist, false);
            //}
        }
    }
}